import api from '@/libs/request'
export const doGetStoreInfoByShopAssistantPhone = (shopAssistantPhone: string) => {
  return api.get(`addon-shop-store/store/info/byShopAssistantPhone`, { shopAssistantPhone })
}
/**
 * 获取门店交易汇总信息
 */
export const doGetStoreTransactionSummaryByStoreId = (storeId: string) => {
  return api.get(`addon-shop-store/store/order/transaction/summary/${storeId} `)
}
/**
 * 校验优惠券
 */
export const checkCoupon = (securityCode: string) => {
  return api.post(`entity/coupon/check/${securityCode}`)
}
/**
 * 核销优惠券
 */
export const writeOffCoupon = (entityCouponId: string) => {
  return api.post(`entity/coupon/writeOff/${entityCouponId} `)
}
